package com.tjjingpan.fragmentbestpractice

import com.tjjingpan.fragmentbestpractice.learnkotlin.Money
import com.tjjingpan.fragmentbestpractice.learnkotlin.StringUtil

fun main(){
    val str = "ABC123xyz!@"
    val count = StringUtil.lettersCount(str)
    println(count)


    val count1 ="ABC123xyz!#$".lettersCount()
    println(count1)

    val money1 = Money(5)
    val money2 = Money(10)
    val money3 = money1 + money2
    val money4 = money3 + 20
    println(money4.value)
}
